<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="/images" method="post" enctype="multipart/form-data">
    <select name="cars">
        <% dirArr.forEach((item)=>{%>
        <option value="<%= item%>" name="nameDir" ><%= item%></option>
       <%})%>
    </select>
    <input type="text" name="imageName" placeholder="请输入图片名称">
    <input type="file" name="file">
    <button type="submit">提交</button>
</form>

</body>
</html>